import request from '@/utils/request'

// 查询首页展示分类列表
export function listAppChannel(query) {
  return request({
    url: '/app/manager/appChannel/list',
    method: 'get',
    params: query
  })
}

// 查询首页展示分类详细
export function getAppChannel(id) {
  return request({
    url: '/app/manager/appChannel/' + id,
    method: 'get'
  })
}

// 新增首页展示分类
export function addAppChannel(data) {
  return request({
    url: '/app/manager/appChannel',
    method: 'post',
    data: data
  })
}

// 修改首页展示分类
export function updateAppChannel(data) {
  return request({
    url: '/app/manager/appChannel',
    method: 'put',
    data: data
  })
}

// 删除首页展示分类
export function delAppChannel(id) {
  return request({
    url: '/app/manager/appChannel/' + id,
    method: 'delete'
  })
}
